<template>
  <div>
    <h3>{{notice.name}}</h3>
    <h5 style="color: #8c939d"><span>发布人：{{notice.user}}</span>   <span style="margin-left: 20px">发布时间：{{notice.time}}</span></h5>
    <div v-html="notice.content"></div>
  </div>
</template>
<script lang="js">
export default {
  name: "NoticeDetail2",
  data(){
    return{
      id: this.$route.query.id,
      notice:{}
    }
  },
  created() {
    this.load()
  },
  methods:{
    load(){
      this.request.get("/notice/"+this.id).then(res =>{
        this.notice=res.data
      })
    },
  }
}
</script>

<style scoped>

</style>